package com.loongtech.bi.entity.player;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "dau_tag")
public class EntityDauTag implements Serializable {
	private static final long serialVersionUID = 2L;

	@Id
    @Column(columnDefinition="varchar(64)")
	private String startday;  // 开始时间
	@Id
    @Column(columnDefinition="varchar(64)")
	private String endday;  // 结束时间
	@Id
    @Column(columnDefinition="varchar(64)")
	private String serverid;
	@Id
    @Column(columnDefinition="varchar(64)")
	private String channelid;
	@Id
    @Column(columnDefinition="varchar(64)")
	private String platformid;
    @Id
    @Column(columnDefinition="varchar(64)")
    private String tagvalue;
	@Column(columnDefinition="int(11) NOT NULL default 0")
	private int dau;

	/**
	 * 返回主键字符串
	 * @return
	 */
	public String getKey() {
		return endday + "-" + tagvalue;
	}
	
	public String getServerid() {
		return serverid;
	}

	public void setServerid(String serverid) {
		this.serverid = serverid;
	}

	public String getChannelid() {
		return channelid;
	}

	public void setChannelid(String channelid) {
		this.channelid = channelid;
	}

	public String getPlatformid() {
		return platformid;
	}

	public void setPlatformid(String platformid) {
		this.platformid = platformid;
	}

	public int getDau() {
		return dau;
	}

	public void setDau(int dau) {
		this.dau = dau;
	}

	public String getStartday() {
		return startday;
	}

	public void setStartday(String startday) {
		this.startday = startday;
	}

	public String getEndday() {
		return endday;
	}

	public void setEndday(String endday) {
		this.endday = endday;
	}

    public String getTagvalue() {
        return tagvalue;
    }

    public void setTagvalue(String tagvalue) {
        this.tagvalue = tagvalue;
    }
}